home *** CD-ROM | disk | FTP | other *** search
- on checkColumn
- global gColumn, gRow
- if (the mouseH >= 164) and (the mouseH < 310) then
- set gColumn to 1
- checkRow()
- else
- if (the mouseH >= 310) and (the mouseH < 456) then
- set gColumn to 2
- checkRow()
- else
- if (the mouseH >= 456) and (the mouseH < 602) then
- set gColumn to 3
- checkRow()
- else
- set gColumn to 0
- set the castNum of sprite 10 to cast "m40"
- updateStage()
- end if
- end if
- end if
- end
-
- on checkRow
- global gColumn, gRow
- set upCast to the number of cast "m40"
- if (the mouseV >= 124) and (the mouseV < 146) then
- set gRow to 1
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 146) and (the mouseV < 169) then
- set gRow to 2
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 169) and (the mouseV < 191) then
- set gRow to 3
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 191) and (the mouseV < 213) then
- set gRow to 4
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 213) and (the mouseV < 235) then
- set gRow to 5
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 235) and (the mouseV < 257) then
- set gRow to 6
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 257) and (the mouseV < 279) then
- set gRow to 7
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 279) and (the mouseV < 301) then
- set gRow to 8
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 301) and (the mouseV < 323) then
- set gRow to 9
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 323) and (the mouseV < 345) then
- set gRow to 10
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 345) and (the mouseV < 367) then
- set gRow to 11
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 367) and (the mouseV < 389) then
- set gRow to 12
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- if (the mouseV >= 389) and (the mouseV < 412) then
- set gRow to 13
- set downCast to the number of cast ("b" & gColumn & "." & gRow)
- set the castNum of sprite 10 to downCast
- updateStage()
- else
- set gRow to 0
- set the castNum of sprite 10 to cast "m40"
- updateStage()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-